using System;
using System.Collections.Generic;
using System.Text;
namespace BE
{
	public class ZD_PHIEUXUATKHO: BusinessObjectBase
	{

		#region InnerClass
		public enum ZD_PHIEUXUATKHOFields
		{
			Id,
			Sophieu,
			Ngaylap,
			Manhanvien,
			Machinhanh,
			Maphongban,
			Ghichu,
			Tongtien,
			Huy,
			Loaiphieu,
			Hoten,
			Diachi,
			Dienthoai,
			Gioitinh,
			PID,
			Nguoilinh,
			Phonglinh,
            Printed,
            SID,
            DateSID,
            DonThuocID
		}
		#endregion

		#region Data Members

			long _id;
			string _sophieu;
			DateTime? _ngaylap;
			string _manhanvien;
			string _machinhanh;
			string _maphongban;
			string _ghichu;
			double? _tongtien;
			bool? _huy;
			byte? _loaiphieu;
			string _hoten;
			string _diachi;
			string _dienthoai;
			bool? _gioitinh;
			string _pID;
			string _nguoilinh;
			string _phonglinh;
            bool? _printed;
            string _SID;
            DateTime _dateSID;
            int _DonThuocID;

		#endregion

		#region Properties

		public long  Id
		{
			 get { return _id; }
			 set
			 {
				 if (_id != value)
				 {
					_id = value;
				 }
			 }
		}

		public string  Sophieu
		{
			 get { return _sophieu; }
			 set
			 {
				 if (_sophieu != value)
				 {
					_sophieu = value;
				 }
			 }
		}

		public DateTime?  Ngaylap
		{
			 get { return _ngaylap; }
			 set
			 {
				 if (_ngaylap != value)
				 {
					_ngaylap = value;
				 }
			 }
		}

		public string  Manhanvien
		{
			 get { return _manhanvien; }
			 set
			 {
				 if (_manhanvien != value)
				 {
					_manhanvien = value;
				 }
			 }
		}

		public string  Machinhanh
		{
			 get { return _machinhanh; }
			 set
			 {
				 if (_machinhanh != value)
				 {
					_machinhanh = value;
				 }
			 }
		}

		public string  Maphongban
		{
			 get { return _maphongban; }
			 set
			 {
				 if (_maphongban != value)
				 {
					_maphongban = value;
				 }
			 }
		}

		public string  Ghichu
		{
			 get { return _ghichu; }
			 set
			 {
				 if (_ghichu != value)
				 {
					_ghichu = value;
				 }
			 }
		}

		public double?  Tongtien
		{
			 get { return _tongtien; }
			 set
			 {
				 if (_tongtien != value)
				 {
					_tongtien = value;
				 }
			 }
		}

		public bool?  Huy
		{
			 get { return _huy; }
			 set
			 {
				 if (_huy != value)
				 {
					_huy = value;
				 }
			 }
		}

		public byte?  Loaiphieu
		{
			 get { return _loaiphieu; }
			 set
			 {
				 if (_loaiphieu != value)
				 {
					_loaiphieu = value;
				 }
			 }
		}

		public string  Hoten
		{
			 get { return _hoten; }
			 set
			 {
				 if (_hoten != value)
				 {
					_hoten = value;
				 }
			 }
		}

		public string  Diachi
		{
			 get { return _diachi; }
			 set
			 {
				 if (_diachi != value)
				 {
					_diachi = value;
				 }
			 }
		}

		public string  Dienthoai
		{
			 get { return _dienthoai; }
			 set
			 {
				 if (_dienthoai != value)
				 {
					_dienthoai = value;
				 }
			 }
		}

		public bool?  Gioitinh
		{
			 get { return _gioitinh; }
			 set
			 {
				 if (_gioitinh != value)
				 {
					_gioitinh = value;
				 }
			 }
		}

		public string  PID
		{
			 get { return _pID; }
			 set
			 {
				 if (_pID != value)
				 {
					_pID = value;
				 }
			 }
		}

		public string  Nguoilinh
		{
			 get { return _nguoilinh; }
			 set
			 {
				 if (_nguoilinh != value)
				 {
					_nguoilinh = value;
				 }
			 }
		}

		public string  Phonglinh
		{
			 get { return _phonglinh; }
			 set
			 {
				 if (_phonglinh != value)
				 {
					_phonglinh = value;
				 }
			 }
		}

		public bool?  Printed
		{
			 get { return _printed; }
			 set
			 {
				 if (_printed != value)
				 {
					_printed = value;
				 }
			 }
		}


        public string SID
        {
            get { return _SID; }
            set
            {
                if (_SID != value)
                {
                    _SID = value;
                }
            }
        }

        public DateTime DateSID
        {
            get { return _dateSID; }
            set
            {
                if (_dateSID != value)
                {
                    _dateSID = value;
                }
            }
        }
        public int DonThuocID
        {
            get { return _DonThuocID; }
            set
            {
                if (_DonThuocID != value)
                {
                    _DonThuocID = value;
                }
            }
        }
		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("Id", "Id"));
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("Sophieu", "Sophieu"));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Sophieu", "Sophieu",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Manhanvien", "Manhanvien",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Machinhanh", "Machinhanh",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Maphongban", "Maphongban",30));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Ghichu", "Ghichu",100));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Hoten", "Hoten",200));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Diachi", "Diachi",300));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Dienthoai", "Dienthoai",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("PID", "PID",50));
			ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Nguoilinh", "Nguoilinh",30));
            ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("Phonglinh", "Phonglinh", 30));
            //ValidationRules.AddRules(new Validation.ValidateRuleStringMaxLength("DonThuocID", "DonThuocID"));
		}

		#endregion

	}
}
